import axios from 'axios'
const url = 'https://zhnzhy.top:2023/data'

export const getData = () => {
    return axios.get(url+'/2021012611')
        .then(res => res.data)
}
export const putData = () => {
    return axios.get(url+'/2021012611')
        .then(res => res.data)
}

export const postData = (user_name, student_id) => {
    return axios.post(
        url+'/2021012611',
        {
            user_name,
            student_id
        }
    )
        .then(res => res.data)
} 
